model button: Add diagrams to the CSS node documentation
authorMatthias Clasen <mclasen@redhat.com>
Tue, 3 Nov 2015 17:51:52 +0000 (12:51 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 3 Nov 2015 17:51:52 +0000 (12:51 -0500)
gtk/gtkmodelbutton.c

index e65cc80418c974a16c9e9c241d3750403356e600..1c60e4b58e089d033a896e31e86072693fb33cd9 100644 (file)
  *   </child>
  * </object>
  * ]|
+ *
+ * # CSS nodes
+ *
+ * |[<!-- language="plain" -->
+ * modelbutton
+ * ├── ...
+ * ╰── check
+ * ]|
+ *
+ * |[<!-- language="plain" -->
+ * modelbutton
+ * ├── ...
+ * ╰── radio
+ * ]|
+ *
+ * |[<!-- language="plain" -->
+ * modelbutton
+ * ├── ...
+ * ╰── arrow
+ * ]|
+ *
+ * GtkModelButton has a main CSS node with name modelbutton, and a subnode,
+ * which will have the name check, radio or arrow, depending on the role
+ * of the button and whether it has a menu name set.
+ *
+ * The subnode is positioned before or after the content nodes and gets the
+ * .left or .right style class, depending on where it is located.
  */
 
 struct _GtkModelButton